<%@ Reference Page="~/blog.aspx" %>
<%@ Reference Control="~/Controls/Member.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.view_member_blog_comments" CodeFile="view_member_blog_comments.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register TagPrefix="Member" TagName="Member" Src="Controls/Member.ascx" %>
<form id="Form1" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr runat=server id="trUserShortCut">
			<td colspan=3 align="center">
				<table border="0" cellpadding="0" cellspacing="0" width="769">
					<tr>
						<td><member:member runat="server" id="ucMemberShortcut"/></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="page_title"><asp:literal id="litName" runat="server"></asp:literal><asp:literal id="litTitle_end" runat="server"> Blog Comments</asp:literal></td>
		</tr>
	
		<tr>
			<td valign="top" height="100%" class="main_table_border">
				<div class="content">
					<table cellSpacing="0" cellPadding="0" width="100%" border="0" class="main_text"> <!--width="500"-->
						<tr id="trUserCanceledMessage" runat=server class="hidden">
							<td align=center height="20"><asp:label id="lblErrMessageCanceled" runat=server cssclass="err_canceled_user">This member has cancelled their membership.</asp:label></td>
						</tr>
						<tr>
							<td align="right" valign="top"><asp:hyperlink id="hlReturnToBlog" runat="server" cssclass="main_text_bold">Return to Blog List </asp:hyperlink><br />&nbsp;</td>
						</tr>						
						<tr id="trBlog" runat=server>
							<td class="small" align="center">
								<TABLE class="blog_table" cellSpacing="0" cellPadding="0" width="100%" border="0">
									<TR>
										<TD align="left" class="main_text">
											<div class="content_trl">
												<asp:label id="lblDate" runat="server" Text="" cssclass="main_text_opposite_bold"></asp:label><BR>
												<BR>
												<B><asp:label id="lblSubject" runat="server" Text=""></asp:label></B><BR>
												<BR>
												<PRE WRAP STYLE="WORD-WRAP:break-word"><asp:literal id="litBlogBody" runat="server" Text=""></asp:literal></PRE><br />
												<asp:label id="lblTimePosted" runat="server" Font-Bold="True"></asp:label>&nbsp;-&nbsp;
												<asp:label id="lblCommentsCount" runat="server" Font-Bold="True" Text=""></asp:label>&nbsp;-&nbsp;
												<asp:linkbutton id="lbAddComment" runat="server" CssClass="main_text_bold" onclick="lbAddComment_Click">Add Comment</asp:linkbutton>
												<asp:label id="lblNotInFriendsListMsg" runat="server" Font-Bold="True" Text="Only friends can post comments in blogs." ></asp:label>
											</div>	
										</TD>
									</TR>
								</TABLE>
							</td>
						</tr>
						<tr>
							<td class="small">&nbsp;</td>
						</tr>
						<tr>
							<td vAlign="top"><asp:label id="lblNoBlog" runat="server"><br>There are no comments posted.</asp:label>
								<ASP:DATAGRID id="dgMessages" runat="server" PagerStyle-HorizontalAlign="Right" PagerStyle-Mode="NumericPages"
									Width="100%" GridLines="None" AutoGenerateColumns="False">
									<ItemStyle VerticalAlign="Top"></ItemStyle>
									<Columns>
										<asp:TemplateColumn>
											<ItemTemplate>
												<TABLE class="blog" cellSpacing="1" cellPadding="0" width="100%" border="0"> <!--width="500px"-->
													<TR>
														<TD vAlign="top" align="left" width="100">
															<div class="content_trl">
																<BR>
																<asp:HyperLink id=hlSender runat="server" Font-Bold="True" Text='<%# DataBinder.Eval(Container.DataItem, "SenderName") %>' CssClass="main_text_bold" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' onclick='<%# DataBinder.Eval(Container.DataItem, "OnClickJS") %>'></asp:HyperLink><BR>
																<asp:HyperLink id=hlSenderImage runat="server" CssClass="small_image" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' ImageUrl='<%# DataBinder.Eval(Container.DataItem, "SenderImageURL") %>' onclick='<%# DataBinder.Eval(Container.DataItem, "OnClickJS") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "SenderNameFull") %>'></asp:HyperLink><BR>
																<BR>
															</div>	
														</TD>
														<TD id="blog" align="left" valign=top class="main_text">
															<div class="content_trl">
																<BR>
																<BR>
																<PRE style="WORD-WRAP: break-word" WRAP><asp:Literal id=litCommentBody runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Body") %>'></asp:Literal></PRE><br />
																Posted by&nbsp;
																<asp:HyperLink id=hlSenderName runat="server" Font-Bold="True" Text='<%# DataBinder.Eval(Container.DataItem, "SenderNameFull") %>' CssClass="main_text_bold" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "MemberURL") %>' onclick='<%# DataBinder.Eval(Container.DataItem, "OnClickJS") %>' >
																</asp:HyperLink>&nbsp;on&nbsp;
																<asp:Label id=lblDatePosted runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Date") %>'>
																</asp:Label>&nbsp;at&nbsp;
																<asp:Label id=lblTime runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Time") %>'>
																</asp:Label><BR>
																<BR>
															</div>	
														</TD>
													</TR>
												</TABLE>
											</ItemTemplate>
											<FooterStyle HorizontalAlign="Left" VerticalAlign="Top"></FooterStyle>
										</asp:TemplateColumn>
									</Columns>
									<PagerStyle HorizontalAlign="Right" Mode="NumericPages"></PagerStyle>
								</ASP:DATAGRID><br>
							</td>
						</tr>
					</table>
				</div>											
			</td>
			<!--<td class="small" width="10">&nbsp;</td>
			<td class="border_adv" vAlign="top" width="203" height="100%">
				<table cellSpacing="1" cellPadding="0" width="100%" border="0">
					<tr>
						<td class="small" width="10">&nbsp;</td>
						<td class="advertisement" align="center" width="199">
							<asp:literal id="litSkyscraperAdvertisement" runat=server></asp:literal>
						</td>
					</tr>
				</table>
			</td>-->
		</tr>
	</table>
</form>
